

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<div id="container">
    <jsp:include page = "header.jsp" />

    <div id ="content">


        <h1>Register </h1>

        <font color="red">


            <%
        if (request.getAttribute("errorMsg") != null) {
            %>
            <p><%= request.getAttribute("errorMsg")%></p>

            <%
        }
            %>


        </font>

        <form method="POST" action="UserController">

            <table align="center" class="table_format" cellpadding="20" cellspacing="20" >
                <tr>
                    <th><label for="firstName">Enter your First Name</label></th>
                    <td><input name="firstName" type ="text"></td>
                </tr>

                <tr>
                    <th><label for="lastName">Enter your Last Name</label></th>
                    <td><input name="lastName" type ="text"></td>
                </tr>

                <tr>
                    <th><label for="age">Enter your age</label></th>
                    <td><input name="age" type ="text"></td>
                </tr>

                <tr>
                    <th><label for="userName">Choose your userName</label></th>
                    <td><input name="userName" type ="text"></td>
                </tr>

                <tr>
                    <th><label for="password">Create a Password</label></th>
                    <td><input name="password" type ="password"></td>
                </tr>


            </table><br>

            <input class ="register_button" type="submit" value="" >

        </form>

        <font color="red" >


            <% if (request.getAttribute("successMsg") != null) {
            %>

            <h2 align="center"> <%= request.getAttribute("successMsg")%></h2>

            <a href="UserController" ><img src="viewprofile.JPG"  width:199px height:41px ></a>


            <%
        }
            %>

        </font>



    </div>

    
    <jsp:include page= "footer.jsp" />

</div>
